Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only warn about missing features for mainstream modern browsers #490

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lionel-rowe
Copy link

Closes #489:

IE is officially dead, so maybe these warnings should be removed for features supported in all current browsers, such as the u flag.

Methodology: check caniuse for each feature, only including mainstream modern browsers (no IE, no Opera Mini, and ignoring the various Chinese browsers, which are all based on mainstream modern browser engines).

Sources:

Results: only neglookbehind and poslookbehind are missing, thanks to iOS Safari. Presumably upcoming features like RegExp v flag will also lack comprehensive support for a while after they're officially added to the spec.

@gskinner
Copy link
Owner

@lionel-rowe - thanks for this PR. Good timing too, as I'm currently planning to jump back into RegExr maintenance / updates beginning early next week, after a long hiatus. I'll take a look then, and let you know if I have any specific feedback, but at a glance this looks good.

@lionel-rowe
Copy link
Author

@gskinner Even better timing — I just noticed https://caniuse.com/js-regexp-lookbehind has been updated, and it looks like iOS Safari 16.4 will ship with support for neglookbehind and poslookbehind! 🎉

Will leave PR as-is for now though as iOS Safari 16.4 is still in beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove most "may not be supported in all browsers" warnings?
2 participants